import axios from '../plugins/axios.js';
import { PREFIX_FILE_SERVE, PREFIX_MICRO_SERVE } from '../config/index.js';

export const uploadFile = (FormData) => {
  return axios.post(PREFIX_FILE_SERVE + '/v1/fileYd', FormData);
};

export function uploadFiles(params) {
  return axios({
    url: PREFIX_FILE_SERVE + '/v1/fileYd',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: params,
  });
}

export function uploadChunkFile(params) {
  return axios({
    url: PREFIX_FILE_SERVE + '/v3/fileYmd/chunk',
    method: 'post',
    headers: { 'Content-Type': 'multipart/form-data' },
    data: params,
  });
}

export function tokenDecrypt(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/tokenDecrypt', { params });
}

export function faceCheck(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/face/img/check', { params });
}

export const getStaticData = (params) => axios.postJson(PREFIX_MICRO_SERVE + '/xw-api/v3/tempShow/update/open', params);

export const msgList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/person/message/page', { params });

export const msgNoticeDic = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/person/message/dic', { params });

export const msgNoticeRead = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/person/message/read', { params });

export const msgNoticeAllRead = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/person/message/clearUnread', {
    params,
  });

export const msgNoticeDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/person/message/details', { params });

export const getAreaTreeList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/tree/area', { params });

export function getSystemTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/tree/system', { params });
}

export function getUnitTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/tree/unit', { params });
}

export const getYardSelectList = (params) => {
  if (!params || !params.area_code) {
    return;
  }
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/yard/select/' + params.area_code, {
    params,
  });
};
export function getBuildingSelect(yard_id) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/building/select/' + yard_id);
}
export function getCellSelect(building_id) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/house/cell/select/' + building_id);
}
export function getFloorSelect(cell_id) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/select/floor/' + cell_id);
}
export function getRoomSelectList(cell_id, floor_num) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/select/room', {
    params: { cell_id, floor_num },
  });
}
export function getRoomSelect(cell_id) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/house/room/select/' + cell_id);
}

export const areaCodeSelectList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/area/getLowerArea', { params });

export function logout(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/user/loginOut', params);
}

export function login(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/login', params);
}

export function openLogin(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/mmLogin/open', params);
}

export function employeeLogin(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/employeeLogin', params);
}

export function oldPwdUpdateNewPwd(params, option) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/updatePassword', params, option);
}

export function resetUserPassword(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/open/userResetPassword', params);
}

export const getRegionCoordinate = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/area/region/coordinate', { params });

export const getYardRegionCoordinate = (yard_id) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/yard/region/all/' + yard_id);

export const getOnlinePeoples = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/online', {
    params,
  });

export const getVideoConnectionList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/zz_people/videoConnectionList', {
    params,
  });

export const getPeopleStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/peopleStatistics', {
    params,
  });

export const getPeopleDistribution = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/peopleDistribution', { params });

export const getHouseStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/houseStatistics', {
    params,
  });

export const getHouseDistribution = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/houseDistribution', { params });

export const getAroundTypeDistribution = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/aroundTypeDistribution', { params });

export const getPandaBaseInAndOutCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/panda/base/pandaBaseInAndOutCount', { params });

export const getHomestayAndHotel = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/homestayAndHotel', {
    params,
  });

export const getPandaBaseParkCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/panda/base/pandaBaseParkCount', { params });

export const getEventCountState = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/state', { params });

export const getEventSourceStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/eventSource', {
    params,
  });
export const getEventSourceTypeStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/getCountByUnitCodeGroupByPtype', { params });
export const getEventTypeStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/eventType', {
    params,
  });

export const getEventTypeCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/evevtTypeCount', {
    params,
  });

export const getEnvironmentStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/environment', {
    params,
  });

export const getLinkageForceStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/statistics/linkageForce', {
    params,
  });

export const getGisEntityList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/gis/entity/list', { params });

export const getGisEntityDetailsList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/source/material/getList', {
    params,
  });

export const processDesTypeList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/blc/sjczlct/getTypeList', {
    params,
  });

export const processDesByType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/blc/sjczlct/getList', {
    params,
  });

export const yjczTypeList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-running-city/v3/blc/sjczlct/getNameList', {
    params,
  });
/*
 * 自治组织
 * */

// 组织 - 成员清单
export const autonomousOrganizationMemberList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/property/management/staff/getListPage', { params });

export function partyMemberList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/user/getPartyOrgUserPageList', { params });
}
// 组织 - 活动掠影
export const autonomousOrganizationActivityList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/getVolunaryActivity', { params });

// 组织 - 扎点
export const getVoluntaryLocation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/voluntary/association/getVoluntaryLocation', {
    params,
  });

// 组织 - 详情
export const autonomousOrganizationDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/voluntary/association/detail', {
    params,
  });

export function zzPeopleTypeList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/type/list', {
    params,
  });
}

export const resourcesSituation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/gis/entity/getInTypeCount', {
    params,
  });

export const specialCrowdType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/getPeopleSpecialCount', { params });

export const focusByType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/getCountGroupType', { params });

export const safetyReportType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/getAqjbType', { params });

export const safetyReport = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/getAqjb', { params });

export const publicityList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/notice/page', { params });

export const peopleTypeList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/getSpeclilPeoplePageByType', { params });

export const resourcesSituationList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/gis/entity/page', { params });

/*
 * 吸毒人员
 * */

// 服刑状态统计
export const drugCrowdServingState = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/countGroupByServingState', { params });

// 风险等级统计
export const drugCrowdRiskGrade = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/countGroupByRiskGrade', { params });

// 走访统计
export const drugCrowdVisitFrequency = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/countVisitFrequency', { params });

// 区域下各小区扎点特殊人员数量
export const yardSpecialPeopleList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/map/yard/special', {
    params,
  });

// 设备情况
export const statisticsGetDevStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/dev_monitor/getDevSumCount', {
    params,
  });

// 车辆流量统计
export const statisticsGetSevenCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/roadGate/access/getSevenCount', {
    params,
  });
// 人员出入流量统计
export const statisticsGetPeopleSevenCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/door/access/getSevenCount', {
    params,
  });
export const statisticsGetCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/log_door_access/getDayCount', {
    params,
  });
export const StatisticsYearCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/log_door_access/getCountGroupMonth', { params });
/* 设备情况 - 人脸门禁 */
export const faceEntranceList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/dev/door/page', {
    params,
  });
/* 设备情况 - 车辆道闸 */
export const vehicleRoadList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/road/gate/list', {
    params,
  });
/* 设备情况 - 烟感检测 */
export const smokeDetectionList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/iot/page', {
    params,
  });
/* 设备情况 - 雪亮工程 */
export const plentyEngineeringList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/monitor/page', {
    params,
  });
/* 设备情况 - 雪亮工程 - 详情 */
export const getMonitorDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/monitor/detail', {
    params,
  });
export const plentyEngineeringDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/dev/monitor/detail', {
    params,
  });
/* 设备情况 - 智能手环 */
export const intelligentBraceletList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/bracelet/page', {
    params,
  });
// 设备情况 - 登记终端
export const equipmentManageDJZD = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/dev/door/getDevPage', {
    params,
  });

// 人脸抓拍列表 - D0016_1,D0016_10,D0016_19,D0016_20,D0016_24,D0016_6(吸毒人员),D0016_8,D0016_9
export const faceCapturedList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/door/access/getlatestTenRecord', {
    params,
  });

// 车辆抓拍列表
export const vehiclesCapturedList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/roadGate/access/getlatestTenRecord', { params });

// 学生通行消息提醒
export const getStudentAccessList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/log/door/access/student/top10', { params });

// 人脸门禁、车辆道闸、烟感监测、雪亮工程 扎点
export const getDevLocation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/dev_monitor/getDevLocation', {
    params,
  });

export const devDetails = (door_id) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/door/getDetails/' + door_id);

/*
 * 事件管理
 * */

// 事件概况
export const eventManageCountState = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/getEventCountByTime', {
    params,
  });
export const eventManageCountTime = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/state', { params });

export const eventManageCountTimeTaday = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/state/today', {
    params,
  });

// 事件管理 - 列表
export const eventList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/page/unit', {
    params,
  });

// 事件类型统计
export const eventManageTypes = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/type', { params });
// 事件高发区域
export const eventArea = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/area1', { params });

export const getEventInfoDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/detail', {
    params,
  });

export function eventAdd(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/insert', params);
}
export function getUnitEventType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/unit_event_type/option', { params });
}

// 数量统计
export const farmhouseManageCountStatistical = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/remove/count/statistical', { params });

// 房屋使用情况
export const farmhouseManageUsage = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/remove/count/dwellingState', { params });

// 商用房屋统计
export const farmhouseManageCommercial = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/remove/count/commercialType', { params });

// 居住人群分析
export const farmhouseManagePeopleLive = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/remove/count/people/remove', { params });

// 性别统计
export const farmhouseManageGender = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/remove/count/people/sex', { params });

// 年龄统计
export const farmhouseManageAge = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/remove/count/people/age', { params });

// 农房辖区数据分布
export const farmhouseManageRegional = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/remove/count/dataStatistics', { params });

// 农房扎点
export const farmhouseMapPoint = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/farmhouse/map', { params });

// 农房扎点详情
export const farmhouseRoomDetails = (room_id) =>
  axios.get(PREFIX_MICRO_SERVE + `/xw-actual-data/v3/farmhouse/room/details/${room_id}`);

/*
 * 重点人员
 * */

// 数量统计
export const focusCrowdCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/tsry/count', {
    params,
  });

// 类型统计
export const focusCrowdType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/getKeyPersonTwoMuneCount', { params });

/*
 * 综合概况
 * */

// 实有人口
export const generalInfoPeopleType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/getBqTypeCount', {
    params,
  });

// 实有房屋
export const generalInfoRealityHouse = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/house_room/getYardbcr', {
    params,
  });

// 小程序用户数
export const mobileUserCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/applet_user/getAppletUserCount', {
    params,
  });

// 整体运行情况
export const eventCount = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/count/overall', { params });
};
// 人员精细化
export const teamPersonFine = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/tempShow/list', { params });
};
// 最新案件
export const recentEventList = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getNewlatestJq', {
    params,
  });
};
// 事件高发类型
export const eventTypeList = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getLbCount', { params });
};
// 事件高发区域
export const eventAreaList = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getJqgfqy', { params });
};
// 事件高发时段
export const eventHighPeriodList = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getTodayHCount', {
    params,
  });
};
// 案件趋势
export const eventTrendList = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getJqDayCountIn30', {
    params,
  });
};
export const eventTrend = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getAjqs', { params });
};
// 警情级别统计
export const eventLevelList = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getJqjbCount', {
    params,
  });
};
// 案件情况统计
export const caseStatisticsList = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getSqmjCount', {
    params,
  });
};
// 警情监测
export const warningMonitoring = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getTypeThb', { params });
};
// 警情详情
export const warningDetails = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/jq/detail/open', { params });
};

/*
 * 网格调度
 * */

// 事件概况
export const gridSchedulingOverflowInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/count/state', {
    params,
  });

export const gridSchedulingOverflowInfoToday = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/count/time', {
    params,
  });

export const gridSchedulingOverflowInfoTodayBj = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/count/bj/today', { params });

// 值班队伍
export const gridSchedulingDutyTeam = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/statistics/getDutyTeam', {
    params,
  });

/*
 * 网格队伍
 * */

// 基本情况
export const gridTeamOverviewInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/statistics/getZzPeopleTypeCount', { params });

// 网格队伍
export const gridTeamBar = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/getGridWork', {
    params,
  });

export const gridTeamList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/page', {
    params,
  });

export const getSubordinateAreaNameByAreaCode = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/getSubordinateAreaNameByAreaCode', { params });

export const getGridWorkByType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/getGridWorkByType', {
    params,
  });
/*
 * 网约房登记
 * */

// 入住登记 - 登记
export const homestayRegisterInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/people/count/register/time', {
    params,
  });
// 入住登记 - 离店
export const homestayRegisterCheckOut = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/people/count/checkOut/time', {
    params,
  });

// 经营统计 - 套数
export const homestayRegisterSuitCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/count/state', {
    params,
  });
// 房间数
export const homestayRegisterRoomCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/separate/count/state', {
    params,
  });
// 登记总数
export const homestayRegisterTotalCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/register/count', {
    params,
  });
// 经营户
export const homestayRegisterBossCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/boss/count', {
    params,
  });
// 床位数
export const homestayRegisterBedCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/bed/count', {
    params,
  });
// 当前入住
export const homestayRegisterLivingCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/living/count', {
    params,
  });
// 处置率
export const homestayRegisterHandleCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/statistics/warn/handle', {
    params,
  });

// 基本情况
export const homestayRegisterSource = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/people/count/register/source2', {
    params,
  });

// 房间详情
export const homestayRegisterRoomDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/detail', {
    params,
  });

// 民宿扎点
export const yardCoordinateHotelCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/yard/coordinate/hotel/count', { params });

/*
 * 名宿预警
 * */

// 预警类型分布
export const homestayWarningTypeHotel = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/statistics/type/hotel', {
    params,
  });

// 预警处理 ?area_code=86.51.01.08.02.02
export const homestayWarningHandle = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/statistics/warn/handle', {
    params,
  });

// 预警排名
export const homestayWarningRank = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/statistics/hotel/room/rank', {
    params,
  });

// 预警趋势 ?area_code=86.51.01.08.02.02
export const homestayWarningTrend = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/statistics/time/source', {
    params,
  });

// 预警列表
export const homestayWarningPointList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/warn/house/page', {
    params,
  });

// 预警处理 - 处罚备注 - 房
export const homestayWarningListHandleNote = (params) =>
  axios.put(PREFIX_MICRO_SERVE + '/xw-hotel/v3/warn/house/punishment/result', params);

// 预警处理 - 处罚备注 - 人
export const homestayWarningHandleNotePeople = (params) =>
  axios.put(PREFIX_MICRO_SERVE + '/xw-hotel/v3/warn/people/punishment/result', params);

// 预警处理 - 房
export const homestayWarningListHandle = (params) =>
  axios.putJson(PREFIX_MICRO_SERVE + '/xw-hotel/v3/warn/house/handle', params);

// 预警处理 - 人
export const homestayWarningListHandlePeople = (params) =>
  axios.putJson(PREFIX_MICRO_SERVE + '/xw-hotel/v3/warn/people/handle', params);

// 网约房 - 详情
export const homestayWarningHotelDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/detail', { params });
export const homestayRoomList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/roomList', { params });
export const homestayBuildingList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/buildingCellList', { params });
// 网约房 - 酒店房间
export const homestayWarningHotelList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/list', { params });

// 网约房 - 酒店房间 - 锁定
export const homestayWarningRoomLock = (params) =>
  axios.put(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/lock', params);

// 网约房 - 酒店房间 - 解锁
export const homestayWarningRoomUnlock = (params) =>
  axios.put(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/unlock', params);

// 网约房 - 从业人员
export const homestayWarningPractitioners = (params) =>
  axios.put(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/employee/page', params);

// 网约房 - 房间 - 删除
export const homestayWarningRoomDel = (params) =>
  axios.delete(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/delete', {
    params: params,
  });

// 网约房 - 从业人员 - 列表
export const homestayWarningEmployee = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/employee/page', { params });

// 网约房 - 入住情况 - 列表
export const homestayWarningOccupancy = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/people/page', { params });

// 网约房 - 入住情况 - 列表
export const hotelWarnMapPoint = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/yard/coordinate/hotel/warn/count', { params });

// 网约房 - 房间详情
export const hotelRoomDetail = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/detail', { params });

// 网约房 - 更新房间详情
export const updateHotelRoomDetail = (params) =>
  axios.putJson(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/update', params);

// 网约房 - 管控记录
export const hotelRoomOperateRecord = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/operateRecord/page', {
    params,
  });

/* 基本情况 */
export const jointWorkingBasicInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/statistics/countJW', {
    params,
  });

/* 类型分布 */
export const jointWorkingTypeDistribution = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/statistics/getYpfxAjgflx', { params });

/* 七天事件统计 */
export const jointWorkingEventTrend = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/event/count/week', { params });

/* 事件扎点 */
export const getMapEventPoint = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/coordinate/getSjData', {
    params,
  });

/*
 * 法律服务
 * */

// 法律服务
export const legalServicesOverflowInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/attorney/record/getFallCount', {
    params,
  });

// 七天留言统计
export const legalServicesMessageStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/attorney/record/getFallLeave', {
    params,
  });

// 七天预约统计
export const legalServicesAppointmentStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/attorney/record/getFallWeek', {
    params,
  });

// 人员清单
export const legalServicesList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/attorney/record/getSelectPage', {
    params,
  });

export const legalServicesMsgList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/information/reply/getAttorneyPage', {
    params,
  });

// 留言详情
export const legalServicesMsgDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/attorney/record/getOne', { params });

// 留言列表
export const legalServicesPeopleMsgList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/information/reply/getReplyAndMessage', {
    params,
  });

// 留言删除
export const legalServicesPeopleMsgListDel = (params) =>
  axios.putJson(PREFIX_MICRO_SERVE + '/xw-api/v3/information/reply/del', params);

// 预约受理
export const legalServicesMsgUpdate = (params) =>
  axios.putJson(PREFIX_MICRO_SERVE + '/xw-api/v3/attorney/record/update', params);

// 律师简介
export const legalServicesDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/attorney/record/getAttorneyList', {
    params,
  });

/*
 * 邻里圈
 * */

// 互动概况
export const neighborCircleOverflowInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/getInteractiveCount', {
    params,
  });

// 互动栏目分布
export const neighborCircleColumnDistribution = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/getInteractiveDistributed', {
    params,
  });

// 七天互动趋势
export const neighborCircleInteractiveTrend = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/getCircleDayTrend', { params });

// 互动内容
export const neighborCircleInteractiveContent = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/page', { params });

// 互动内容 - 删除
export const neighborCircleInteractiveContentDel = (params) =>
  axios.delete(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/delete', { params });

// 互动内容 - 详情 :id
export const neighborCircleInteractiveContentDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/getCircleDetails', { params });

// 互动内容 - 互动清单 id
export const neighborCircleInteractiveContentList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/message/page', { params });

// 互动内容 - 互动清单 - 删除 id
export const neighborCircleInteractiveContentListDel = (params) =>
  axios.delete(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/message/delete', { params });

// 互动内容 - 访问用户 target_id
export const neighborCircleInteractiveContentUserList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/visit/applet/user/page', { params });

// 互动内容 - 点赞清单 id type
export const neighborCircleInteractiveContentLikeList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/like/page', { params });

// 互动内容 - 收藏清单 id type
export const neighborCircleInteractiveContentKeepList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/applet/user/keep/page', { params });

// 互动内容 - 投诉清单 circle_id type
export const neighborCircleInteractiveContentComplaintsList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/report/singlereportlist', {
    params,
  });

// 点赞收藏参与情况
export const neighborCircleParticipateSituation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/getKeepAndLikeParticipation', {
    params,
  });

// 举报情况
export const neighborCircleReportedSituation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/circle/report/singlereportlist', {
    params,
  });

/*
 * 睦邻荟
 * */

// 矛盾调解事件概况
export const neighborHarmonyEventInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/mediate_information/getMediateSurvey', { params });

// 调解室概况
export const neighborHarmonyRoomOverflow = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/mediate_information/getMediateSurvey', { params });

// 矛盾纠纷类型分布
export const neighborHarmonyType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/mediate_information/getMediateInformationTypeCount', {
    params,
  });

// 调解室统计
export const neighborHarmonyMediationStatistical = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/mediate_information/getMediateStatistics', {
    params,
  });

// 调解清单
export const neighborHarmonyMediationList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/mediate/information/getSelectPage', {
    params,
  });

// 调解清单 - 详情
export const neighborHarmonyMediationListDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/mediate/information/getOne', {
    params,
  });

// 调解清单 - 详情 - 参与人列表
export const neighborHarmonyMediationListDetailsUsers = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/mediate/information/user/getListPage', {
    params,
  });

// 调解清单 - 详情 - 聊天信息
export const neighborHarmonyMediationListDetailsMsg = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/mediate/information/getInforState', {
    params,
  });

// 调解室参与情况
export const neighborHarmonyMediationParticipate = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/information/reply/getSelectPage', {
    params,
  });

// 调解参与排名
export const neighborHarmonyMediationRanking = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/mediate/information/getRankingSelect', {
    params,
  });
/*
 * 智慧党建
 * */

// 党建概况
export const getPartyTypeCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartyTypeCount', {
    params,
  });

// 党员列表
export const partyBuildingPartyCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartyCount', {
    params,
  });

// 党建概括
export const partyBuildingPartyList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/user/getPartyOrgUserList', {
    params,
  });

// 党员发展
export const partyBuildingType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartyDevelop', {
    params,
  });

// 党建要闻
export const partyBuildingNews = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/partyInformationPage', {
    params,
  });

// 年龄分布
export const partyBuildingAge = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartyAge', {
    params,
  });

// 学历分布
export const partyBuildingEducation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartyEducation', {
    params,
  });

// 性别分布
export const partyBuildingSexCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartySexCount', {
    params,
  });

// 在线交党费
export const partyBuildingPartyFees = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/partyPaymentPage', {
    params,
  });

/* 组织类型:   党组织: D0060_5; 社会组织: D0060_7 */
export const getPartyCoordinate = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartyCoordinate', {
    params,
  });

// 党组织详情
export const getPartyUser = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/party_org/getPartyUser', {
    params,
  });

/*
 * 人房预警
 * */

// 七天预警统计
export const peopleHouseWarnWeekCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/warn/week', {
    params,
  });

// 类型统计
export const peopleHouseWarnType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/warn_people/all/type', {
    params,
  });

// 人 - 类型 - 列表
export const peopleHouseWarnPeopleList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/people/page', {
    params,
  });

// 房 - 类型 - 列表
export const peopleHouseWarnHouseList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/house/page', {
    params,
  });

// 设备 - 类型 - 列表
export const peopleHouseWarnEquipmentList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/control/page', {
    params,
  });

// 人 - 详情 - 抓拍列表
export const peopleHouseWarnPeopleSnapList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/door/access/page', { params });

/*
 * 服务发展 - 问卷调查
 * */

// 问卷调查
export const questionResearchQuesType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/ques/getQuesType', { params });

export const questionResearchQuesDate = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/ques/getQuesDate', { params });

// 最新问卷参与情况
export const questionResearchQuesWeek = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/ques/getQuesWeek', { params });

// 问卷列表
export const questionResearchList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/questions/page', { params });

// 问卷列表详情
export const questionResearchListDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/questions/getDetails', { params });

// 问卷调查参与情况
export const questionResearchDetailPeopleList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/questions/getAppUserQuesAnswer', {
    params,
  });

// 问卷详情
export const questionResearchQuestionnaireDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/questions/getAppUserDetails', {
    params,
  });

// 题目 - 填空题 - 列表
export const questionResearchBlanksDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/questions/getBlanksDetails', {
    params,
  });

/*
 *  实有房屋
 * */

// 基本情况
export const realityHouseOverflowInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/house_room/getYardbcr', {
    params,
  });

// 数据更新趋势
export const realityHouseDataUpdateTrend = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/getResidentWeek', {
    params,
  });

// 辖区分布统计
export const realityHouseAreaDistribute = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/house_room/syfw/dataStatistics', {
    params,
  });

// 楼栋单元
export const realityHouseUnitByYard = (yard_id) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/cell/getBuildingCellListByYardId/' + yard_id);

// 小区 - 楼栋 - 单元 - 房间
export const realityHouseRoom = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/page', { params });

// 实有房屋统计
export const realityHouseRoomDwellingStateByAreaCod = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/house_room/roomDwellingStateByAreaCode', { params });

// 实有房屋 - 数量统计
export const realityHouseCountStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/house_room/roomDwellingStateByAreaCode', { params });

// 租住到期提醒
export const realityHouseRentRemind = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/rent/deadline/count', { params });

/*
 *  实有人口
 * */
export const peopleDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/info/people', { params });

// 性别统计
export const realityPeopleSexStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/syrk/sex', {
    params,
  });

// 年龄统计
export const realityPeopleAgeStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/statistics/syrk/age', {
    params,
  });

// 数据更新趋势
export const realityPeopleGetResidentWeek = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/getResidentWeek', {
    params,
  });

// 数据统计
export const realityPeopleDataStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/info/syrk/dataStatistics', { params });

// 出租房信息
export const realityPeopleRentalMsg = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/house_room/syfw/rentPeopleAndHouse', {
    params,
  });

// 人与户主关系 - 映射
export const getDicListByName = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/dic/getDicListByName/open', {
    params,
  });

// 常住 - 流动 - 人口
export const realityPeopleQhTypeCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/getQhTypeCount', {
    params,
  });

export const realityPeopleList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/info/real/peoples', {
    params,
  });

export const peopleTempList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/info/temp/page', {
    params,
  });

// 管理等级
export const realityUnitManageLevel = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/supervise_subject/getWorkplaceManagementLevelCount', {
    params,
  });

// 实有单位
export const realityUnitCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/map/getZhgkSydwNew', {
    params,
  });

// 使用情况
export const realityUnitUseSituation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/getWorkplaceUsage', {
    params,
  });

// 场所统计
export const realityUnitPlaceCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/getWorkplacePlace', {
    params,
  });

// 单位场所
export const realityUnitUnitList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/subject/unit/list', {
    params,
  });
export const realityUnitPageList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/real/unit/list', {
    params,
  });

// 单位场所详情
export const unitDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/subject/unit/detail', {
    params,
  });

// 单位场所扎点
export const getDwcsCoordinateData = (params) =>
  /*
   * params.type: 单位类型: 4,5,6, 场所类型: 1公园、2学校、3医院、7派出所、8消防队、10酒吧
   * */
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/subject/getDwcsData', {
    params,
  });

export const rentalHouseMarker = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/rent/people/map/yard/rent/house', {
    params,
  });

export const rentOverInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/rent/people/getPeopleAndYardCount', { params });

export const rentSexCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/rent/people/count/sex', {
    params,
  });

export const rentAttribute = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/rent/people/count/rent/type', {
    params,
  });

export const rentTrend = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/rent/people/getResidentWeek', {
    params,
  });

export const houseList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/page', { params });

export const houseCurrentPeople = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/peoples', {
    params,
  });

export const houseHistoryPeople = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/log/immigration/emigration/page', { params });

/*
 * 商居联盟
 * */

// 商家数量
export const shopHouseLeagueCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/getBusinessCount', {
    params,
  });

// 积分数量
export const shopHouseLeagueIntegralCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/map/getIntegral', {
    params,
  });

// 商家类型
export const shopHouseLeagueType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/getBusinessType', {
    params,
  });

// 积分动态
export const shopHouseIntegralCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/map/getWriteOff', {
    params,
  });

// 商家列表
export const shopHouseList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/subject/around/list', { params });

// 商家详情 - 积分列表
export const shopHouseIntegralList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/subject/integral/list', { params });

export const getOnlineOrderCountDate = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/online/order/getOnlineOrderCountDate', { params });

export const getServiceTypeCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/online/order/getTypeCount', {
    params,
  });

export const getSubscribeHandleCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/online/order/getCountDay7', {
    params,
  });

export const getOpinionFeedbackCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/feedback/count', { params });

export const getFeedbackTypeCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/feedback/getTypeCount', {
    params,
  });

export const getFeedbackPage = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/feedback/page', { params });

export const getOnlineOrderPeoplePage = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/online/order/page', { params });

/*
 * 社区活动
 * */

// 社区活动
export const socialActivityOverviewInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/activity/getActivityCommunity', {
    params,
  });

// 活动类型
export const socialActivityActivityType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/activity/getActivityType', {
    params,
  });

// 活动参与度统计
export const socialActivityRanking = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/activity/getactivityRanking', {
    params,
  });

// 活动列表
export const socialActivityList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/activity/list', { params });

// 活动参与情况
export const socialActivityParticipationList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/activity-record/listAll', { params });

export function activityRecordList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/activity-record/list', {
    params,
  });
}

/*
 * 社会组织
 * */

// 组织 - 组织详情
export const getPartyOrgDetails = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/org/detail', { params });

// 组织 - 成员清单
export const socialOrganizationGetPartyOrgUserPageList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/user/getPartyOrgUserPageList', {
    params,
  });

// 组织 - 活动掠影
export const socialOrganizationGetPartyOrgActivityPageList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/getPartyOrgActivityPageList', {
    params,
  });

// 组织 - 活动掠影详情
export const getPartyOrgActivityDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/getPartyOrgActivity', { params });

// 社会合伙人
export const socialPartnerOverflewInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/around/info/getContractCount', {
    params,
  });

// 积分总数
export const socialPartnerOverflewInfoCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/map/getIntegralContract', { params });

// 合伙人类型
export const socialPartnerType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/getPartnerType', {
    params,
  });

// 积分动态
export const socialPartnerDynamicIntegral = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/statistics/map/getWriteOffContract', { params });

// 合伙人列表
export const socialPartnerList = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/around/page', { params });

// 数量统计/类型统计
export const specialCrowdNumberStatistical = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/tsry/count2', {
    params,
  });

// 预警统计
export const specialCrowdWarningStatistical = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/warn/week', {
    params,
  });

// 人员清单
export const specialCrowdPersonnelList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/pagination', {
    params,
  });

// 保和人员清单
export const getBhSpecialCrowdList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/bh/pagination', {
    params,
  });

/* for 保和 */
export const getCrowdCountGroupType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/bh/getCountGroupType', {
    params,
  });

export const getAreaCrowdCountStatistics = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/bh/statistics', {
    params,
  });

export const getCrowdLatestTenThrowRecord = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/door/access/bh/getlatestTenRecord', {
    params,
  });

export function wisdomTodayAccess(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/door/access/getAccessToDayAccessType', { params });
}

export function wisdomTodayType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/log_door_access/getWpfDoorAccess', { params });
}

export function merchantType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/around/info/getTypeCountByAreaCode', { params });
}

export function wisdomBusinessScore(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/around/getMapCateList', {
    params,
  });
}

export function wisdomEquipment(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/dev/iot/getDevTypeIfOnlineCount', { params });
}

export function wisdomPeopleFlow(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/door/access/getAccessDay5Hour24', { params });
}

export function monitorList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/monitor/page', {
    params,
  });
}

export function devAlarmInfo(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/warn/device/getSituationHandleCount', { params });
}

export function alarmPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/page', {
    params,
  });
}

export function allAlarmRead(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/read', params);
}

export function allAlarmDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/detail', { params });
}

export function allAlarmHandle(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/handle', params);
}

export function getBhWarnInfoPage(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/bh/page', {
    params,
  });
}

export function getZzPeopleNewLocation(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/getZzPeopleNewLocation', { params });
}

export function alarmDevDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/detail', {
    params,
  });
}

export function getEventTimeLineInfo(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/detailByeventIdAndAction', { params });
}

export function getMsgNotifyPeoplePage(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/page', {
    params,
  });
}

export function sendNotifyMsgToPhone(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/send/node', { params });
}

export function setWarnInvalid(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/device/invalid', params);
}

export function getMessageConfiguration(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/warn/custom/configuration/getMessage', { params });
}

export function sendReportMessage(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/device/sendMessage', { params });
}

export function alarmDevAssign(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/warnToEvent', params);
}

export function getAssignPeoplesList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/option', { params });
}

export function alarmDevHandle(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/warn/info/handle', params);
}

export function deviceSelectList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/door/getSelectList', { params });
}

// 发布概况
export const workGuideOverviewInfo = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/notice/getNoticeCount', {
    params,
  });

// 类型分布
export const workGuideType = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/notice/getNoticeType', {
    params,
  });

// 内容清单
export const workGuideContentList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/notice/page', {
    params,
  });

// 文章详情
export const workGuideNoticeDetail = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/notice/detail', {
    params,
  });

// 访问情况
export const workGuideVisitSituation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/notice/getNoticesApplet', {
    params,
  });

export function hotelPeopleRegisterRecord(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/people/regist/record', { params });
}

export function peopleHouseList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/room/addresses/people_id', { params });
}

export function updateRelation(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/info/updateRelation', params);
}

export const getMapYardSpecial = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/bh/map/yard/special', { params });

export const getClCoordinateData = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/coordinate/getClData', {
    params,
  });

export const getRentalHouseMarker = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/rent/people/map/yard/rent/house', {
    params,
  });

export const getDwCoordinateData = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/coordinate/getDwData', {
    params,
  });

export const getAddressList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/link-subject-vaccine/getAddressList', { params });

export const getJqrlfx = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getJqrlfx', { params });

export const getPeopleInfoMapYardWarn = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/map/yard/warn', { params });

export const getEnterprisePrickPoint = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/supervise_subject/getEnterprisePrickPoint', {
    params,
  });

export const getPeopleInfoMapYardHouse = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/map/yard/house', { params });

export const getPeopleInfoMapYardSyrk = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/map/yard/syrk', { params });

export const getDevIotLocation = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/dev/iot/location', {
    params,
  });

export const getPeopleInfoMapYardKey = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_info/map/yard/key', {
    params,
  });

export const getGisEntityZyData = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/gis/entity/getZyData', {
    params,
  });

export const getZzCoordinateData = (params) =>
  axios.get('/xwzn-api/v2/coordinate/getZzData', {
    params,
  });

export const selfBuildHousePointList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/map', { params });
export const selfBuildHouseRenovatePointList = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/map/renovateStatus', { params });
export const selfBuildHouseRenovateDetails = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/house/renovate/details', { params });

// 党员详情
export function partyMemberDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/party/user/getPartyOrgUser', { params });
}

export function getSystemAreaRegionCoordinate(params) {
  return axios.get(PREFIX_MICRO_SERVE + `/xw-system/v3/area/region/coordinate`, { params });
}

export function getAreaRegionType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/open/enum/AreaRegionType', { params });
}
// 自建房
export function dataStatisticsData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/countGroupByPurpose', { params });
}
export function structuralClassData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/countGroupByStructureType', { params });
}
export function landNatureData(params) {
  //小类
  //xw-qy-zjj/v3/self/built/house/countGroupByLandNatureDetails
  //大类
  //xw-qy-zjj/v3/self/built/house/countGroupByLandNature
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/countGroupByLandNatureDetails', { params });
}
export function housingUseData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/countGroupByPurposeDetails', { params });
}
export function safetyHazardData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/countGroupByRenovateStatus', { params });
}
export function controlSituationData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/countGroupByHiddenDanger', { params });
}
export function zjfRegionalDistributionData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/countGroupByHiddenDangerAndAreaCode', {
    params,
  });
}
export function selfBuildHousePageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/page', { params });
}
export function selfBuildHouseRenovatePageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/house/renovate/page', { params });
}
export function selfBuildHouseTroubleshootingPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/house/troubleshooting/page', { params });
}
export function selfBuildHouseLookBackPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/house/look/back/page', { params });
}
export function zjfDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-qy-zjj/v3/self/built/house/details', { params });
}
export function eventHandle(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/handle', params);
}
export function todayNetHouseCheckOut(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/today/count/groupByCheckInAnCheckOut', { params });
}
export function alarmCountByType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/warn/info/getWarnCountByType', { params });
}
export function alarmTrendByType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/warn/info/getWarnCountTimeByType', { params });
}
export function netHouseCount(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/count', { params });
}
export function netHouseRoomCount(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/separate/count', { params });
}
export function netHouseRankingTop(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/count/top10/groupByHotel', { params });
}
export function netHouseYardTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/monitor/getHotelTreeYard', { params });
}
export function netHouseAreaTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/monitor/getHotelTreeArea', { params });
}
export function netHouseUnderagePeople(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/minor/count', { params });
}
export function netHouseMinorityNation(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/minority/nationality/count', { params });
}
export function netHouseSpecial(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/special/count', { params });
}
export function netHouseRoomPeopleByArea(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/peopleAndroomCount/groupByArea', { params });
}
export function devOnlineCount(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/dev/iot/getDevIfOnlineCount', { params });
}
export function netRegisterPeople(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-hotel/v3/hotel/room/people/history/page', { params });
}
export function netIdsByAreaCode(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/getHotelYardIds', { params });
}
export function netPointList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/hotel/room/coordinate/hotel/count', { params });
}
export const wlsbPoints = (params) => axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/dev/iot/location', { params });

export const gridResource = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/zz_people/getGridPower', { params });

export const scenicSpotCount = (params) =>
  axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/around/info/getScenicArea', { params });

export const verifySecondaryPassword = (params) => {
  axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/user/verifySecondaryPassword', { params });
};
export function instructionUnit(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/cxjd', { params });
}
export function policeInformationPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/jq/page', { params });
}
export function policeInformationJqTypeList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/jqlx/list', { params });
}
export function scenicAreaByAreaCode(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/sys_area/getScenicArea', { params });
}
export function gridTeamPeopleDetails(id) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/detail/' + id);
}
export function areaDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/area/detail', { params });
}
export function areaRegionDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/area/region/detail', { params });
}
export function jqOverflowInfo(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/open/getTypeJq', { params });
}
export function eventTiji(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/sbsjt', params);
}
export function eventTjDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/event/info/sjtjl', { params });
}
// 火灾管理
export function firePageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/xfhz-info/page', { params });
}
export function firePointList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/xfhz-info/list', { params });
}
export function fireDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/xfhz-info/details', { params });
}
export function aqyhPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/hazard-info/page', { params });
}
export function aqyhTotal(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/hazard-info/getHousingHazards', { params });
}
// 自建房 - 指令
export function exportInstructionDetails({ id }) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/export?id=' + id);
}
export function instructionAdd(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/add', params);
}
export function instructionUpdate(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/update', params);
}
export function instructionDel(params) {
  return axios.delete(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/del', { params });
}
export function instructionDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/details', { params });
}
export function getInstructionTemplatePage(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/temp/page', { params });
}
export function addInstructionTemplate(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/temp/add', params);
}

export function editInstructionTemplate(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/temp/update', params);
}

export function delInstructionTemplate(params) {
  return axios.delete(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/temp/del', { params });
}
export function instructionHfqs(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/hfqs', { params });
}
export function setInstructionStatus(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/zlzt', { params });
}
export function instructionFeedback(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/fk', { params });
}
export function instructionGenJinList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/gjzl', { params });
}
export function getGAUnitTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/tree/getGaUnitTree/open', { params });
}
export function getCaseUnitList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/case1/dw', { params });
}
export function sendMsgByPhone(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-api/v3/sms/send/record/sendSms', params);
}
export function sendMsgZjfZl(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-api/v3/sms/send/record/sendSmsZjf', params);
}
// 自建房 - 自定义 - 指令
export function sendMsgZdyZl(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-api/v3/sms/send/record/sendSmsZl', params);
}
export function sendMsgZjfZgbm(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-api/v3/sms/send/record/sendSmsZjfZgbm', params);
}
export function monitorByTreeArea(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/monitor/getTreeArea', { params });
}
export function shopDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/around/details', { params });
}
export function fireInfoData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/xfhz-info/getQwhz', { params });
}
export function fireSwqk(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/xfhz-info/getSwqk', { params });
}
export function fireSiteData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/xfhz-info/getGroupQhcs', { params });
}
export function fireReason(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/xfhz-info/getGroupQhyy', { params });
}
// 猛追湾 - 安全隐患
export function aqyhInfo(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/mzw/yh/getCountZgjd', { params });
}
export function aqyhSqfb(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/mzw/yh/getGroupArea', { params });
}
export function aqyhHyfb(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/mzw/yh/getGroupHy', { params });
}
export function aqyhMzwPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-mzwpcs/v3/mzw/yh/page', { params });
}
// 猛追湾 - 消防设施
export function xfssInfo(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/aqyh-info/getEquipmentSituation', { params });
}
export function xfssXfs(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/aqyh-info/getFireSituation', { params });
}
export function xfssXfqk(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/aqyh-info/getfireFighting', { params });
}
export function xfssList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/aqyh-info/locationList', { params });
}

export function netTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/house/yard/select/subordinate/area', { params });
}
export function getAppletSelectList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/applet/option', { params });
}
export function peopleTypeCount(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/people_special_info/count/byType', { params });
}
export function getdbxqZddw(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-analysis/v3/gis/entity/dbxqGisZddw', { params });
}
// 点位场所类型、分页列表
export function getDwTypeList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/gis/entity/type/list', { params });
}
export function dwPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/gis/entity/page', { params });
}

export function getHZPlayerConfig(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/monitor/player/config/open', { params });
}
export function getCopyright(params) {
  return axios.get('/getCjdw', { params });
}
export function sendRestPasswordAuthCode(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/user/open/sendRestPasswordAuthCode', { params });
}
export function sendResetPasswordEmail(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/user/open/sendResetPasswordEmail', { params });
}
export function xfssInfoData(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/aqyh-info/getGrade', { params });
}
export function wbdwTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/instructions/wbdw', { params });
}
// 人员详情 - 业务标签
export function peopleBusinessList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/log/people/special/page', { params });
}
export function peopleSpecialSigns(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/signs', { params });
}
export function peopleBusinessCancelTag(params) {
  return axios.delete(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/cancel', { params });
}
export function peopleBusinessTagBigType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/type/info/option/role', { params });
}
export function peopleBusinessTagSmallType(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/type/info/childs/option/role', { params });
}
export function peopleBusinessTagAdd(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/people/special/sign', params);
}
export function teamPeopleSelect(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/list', { params });
}

export function getUserMenu(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/tpMenu/getTpMenu', { params });
}

export function getUserSideMenu(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/userMenu', { params });
}
/* 字典管理 */
export function disableDic(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/dic/disable', params);
}
export function enableDic(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/dic/enable', params);
}
/* 开放字典 */
export function getOpenDicPage(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/dic/page', { params });
}
export function getOpenDicTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/tree/dic', { params });
}

export function addOpenDic(params) {
  return axios.post(PREFIX_MICRO_SERVE + '/xw-system/v3/dic/add', params);
}

export function editOpenDic(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/dic/update', params);
}

export function editOpenDicUseStatus(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/link-open-dic/updateById', params);
}

export function delOpenDic(id) {
  return axios.delete(PREFIX_MICRO_SERVE + '/xw-system/v3/dic/del/' + id);
}
/* 角色管理 */
export function getRoleList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/role/page', { params });
}
export function enableRole(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/role/enable', params);
}
export function disableRole(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/role/disabled', params);
}
export function deleteRole(data) {
  return axios.deleteFormData(PREFIX_MICRO_SERVE + '/xw-system/v3/role/del', data);
}
export function addRole(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-system/v3/role/add', params);
}
export function editRole(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-system/v3/role/update', params);
}
export function saveRoleMenu(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-system/v3/role/roleMenu', params);
}
export function resetRoleData(params) {
  return axios.post(PREFIX_MICRO_SERVE + '/xw-system/v3/role/initPeopleType', params);
}
export function getHomePageList(type) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/homepage/list', { params: { type } });
}
export function getJurisdictionAppletMenu(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/role/getJurisdictionAppletMenu', { params });
}
export function getJurisdictionMenu(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/role/getJurisdictionMenu', { params });
}
export function getJurisdictionTpMenu(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/role/getJurisdictionTpMenu', { params });
}
export function appletMenuTree(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/applet/role/menu/tree/' + params.id);
}
export function appletMenuSave(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-api/v3/applet/role/menu/save', params);
}
/* 用户协议 */
export function serviceAgreementPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/agreement/getPageList', { params });
}
export function serviceAgreementDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/agreement/getDetails', { params });
}
export function serviceAgreementAdd(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-api/v3/agreement/add', params);
}
export function serviceAgreementUpdate(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-api/v3/agreement/update', params);
}
/* 系统更新日志 */
export function editionLogPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/log/system/update/page', { params });
}
export function editionLogAdd(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-system/v3/log/system/update/add', params);
}
export function editionLogTypeEnum(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/open/enum/LogSystemUpdateEnum', { params });
}
/* 菜单管理 */
export function getMenuPage(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/page', { params });
}
export function enableMenu(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/enable', params);
}
export function disableMenu(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/disable', params);
}
export function moveMenuUp(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/up', params);
}
export function moveMenuDown(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/down', params);
}
export function delMenu(data) {
  return axios.deleteFormData(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/del', data);
}
export function systemMenuBtn(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/pool/menu/btn/list', { params });
}
export function systemMenu(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/pool/menu/page', { params });
}
export function addMenu(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/add', params);
}
export function editMenu(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-system/v3/menu/update', params);
}
/* 帐号管理 */
export function getSystemAccountList(params) {
  return axios.get(PREFIX_MICRO_SERVE + `/xw-system/v3/user/page`, { params });
}
export const resetPassword = (params) => {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/resetPassword', params);
};
export const resetSecondaryPassword = (params) => {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/resetSecondaryPassword', params);
};
export const addAccount = (params) => {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-system/v3/user/add', params);
};
export const editAccount = (params) => {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-system/v3/user/update', params);
};
export const encryptedUserInfo = (params) => {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/encrypted', params);
};
export const getAssignableRoles = (params) => {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-system/v3/user/assignableRoles', { params });
};
export const bindRoleToAccount = (params) => {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/bind/role', params);
};
export function peopleBindRole(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-command-dispatch/v3/zz/people/account/role/bind', params);
}
export const unbindRoleFromAccount = (params) => {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/unbind/role', params);
};
export const disabledAccount = (params) => {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/disable', params);
};
export const enableAccount = (params) => {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-system/v3/user/enable', params);
};
export const delAccount = (data) => {
  return axios.deleteFormData(PREFIX_MICRO_SERVE + '/xw-system/v3/user/del', data);
};
// 请求日志
export function loginRequest(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/request/es/page', { params });
}
// 操作日志
export function optUserList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/operationUser/page', { params });
}
// 登录日志
export function getLoginLogPage(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/log/login/page', { params });
}
/* 常见问题 */
export function commonRequestPageList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/faq-issue/page', { params });
}
export function commonRequestSystemList(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-api/v3/faq-issue/systemList', { params });
}
export function commonRequestAdd(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-api/v3/faq-issue/add', params);
}
export function commonRequestUpdate(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-api/v3/faq-issue/update', params);
}
export function commonResquestDel(data) {
  return axios.deleteFormData(PREFIX_MICRO_SERVE + '/xw-api/v3/faq-issue/delete', data);
}
/* 物联设备 */
export function devIotAdd(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/iot/add', params);
}
export function devIotUpdate(params) {
  return axios.putJson(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/iot/update', params);
}
export function devIotDel(id) {
  return axios.delete(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/iot/del/' + id);
}
export function devIotDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/iot/detail', { params });
}
export function devIotLinkMan(params) {
  return axios.postJson(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/iot/updateLinkMan', params);
}
export function devIotWorkStatusUpdate(params) {
  return axios.put(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/iot/updateWorkStatusById', params);
}
export function getDoorGateDetails(params) {
  return axios.get(PREFIX_MICRO_SERVE + '/xw-actual-data/v3/dev/road/gate/getDetails', { params });
}
